Integrand size = 18, antiderivative size = 227 \[ \int (c+d x)^3 (a+b \sec (e+f x)) \, dx=\frac {a (c+d x)^4}{4 d}-\frac {2 i b (c+d x)^3 \arctan \left (e^{i (e+f x)}\right )}{f}+\frac {3 i b d (c+d x)^2 \operatorname {PolyLog}\left (2,-i e^{i (e+f x)}\right )}{f^2}-\frac {3 i b d (c+d x)^2 \operatorname {PolyLog}\left (2,i e^{i (e+f x)}\right )}{f^2}-\frac {6 b d^2 (c+d x) \operatorname {PolyLog}\left (3,-i e^{i (e+f x)}\right )}{f^3}+\frac {6 b d^2 (c+d x) \operatorname {PolyLog}\left (3,i e^{i (e+f x)}\right )}{f^3}-\frac {6 i b d^3 \operatorname {PolyLog}\left (4,-i e^{i (e+f x)}\right )}{f^4}+\frac {6 i b d^3 \operatorname {PolyLog}\left (4,i e^{i (e+f x)}\right )}{f^4} \]
[Out]
Time = 0.24 (sec) , antiderivative size = 227, normalized size of antiderivative = 1.00, number of steps used = 11, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {4275, 4266, 2611, 6744, 2320, 6724} \[ \int (c+d x)^3 (a+b \sec (e+f x)) \, dx=\frac {a (c+d x)^4}{4 d}-\frac {2 i b (c+d x)^3 \arctan \left (e^{i (e+f x)}\right )}{f}-\frac {6 b d^2 (c+d x) \operatorname {PolyLog}\left (3,-i e^{i (e+f x)}\right )}{f^3}+\frac {6 b d^2 (c+d x) \operatorname {PolyLog}\left (3,i e^{i (e+f x)}\right )}{f^3}+\frac {3 i b d (c+d x)^2 \operatorname {PolyLog}\left (2,-i e^{i (e+f x)}\right )}{f^2}-\frac {3 i b d (c+d x)^2 \operatorname {PolyLog}\left (2,i e^{i (e+f x)}\right )}{f^2}-\frac {6 i b d^3 \operatorname {PolyLog}\left (4,-i e^{i (e+f x)}\right )}{f^4}+\frac {6 i b d^3 \operatorname {PolyLog}\left (4,i e^{i (e+f x)}\right )}{f^4} \]
[In]
[Out]
Rule 2320
Rule 2611
Rule 4266
Rule 4275
Rule 6724
Rule 6744
Rubi steps \begin{align*} \text {integral}& = \int \left (a (c+d x)^3+b (c+d x)^3 \sec (e+f x)\right ) \, dx \\ & = \frac {a (c+d x)^4}{4 d}+b \int (c+d x)^3 \sec (e+f x) \, dx \\ & = \frac {a (c+d x)^4}{4 d}-\frac {2 i b (c+d x)^3 \arctan \left (e^{i (e+f x)}\right )}{f}-\frac {(3 b d) \int (c+d x)^2 \log \left (1-i e^{i (e+f x)}\right ) \, dx}{f}+\frac {(3 b d) \int (c+d x)^2 \log \left (1+i e^{i (e+f x)}\right ) \, dx}{f} \\ & = \frac {a (c+d x)^4}{4 d}-\frac {2 i b (c+d x)^3 \arctan \left (e^{i (e+f x)}\right )}{f}+\frac {3 i b d (c+d x)^2 \operatorname {PolyLog}\left (2,-i e^{i (e+f x)}\right )}{f^2}-\frac {3 i b d (c+d x)^2 \operatorname {PolyLog}\left (2,i e^{i (e+f x)}\right )}{f^2}-\frac {\left (6 i b d^2\right ) \int (c+d x) \operatorname {PolyLog}\left (2,-i e^{i (e+f x)}\right ) \, dx}{f^2}+\frac {\left (6 i b d^2\right ) \int (c+d x) \operatorname {PolyLog}\left (2,i e^{i (e+f x)}\right ) \, dx}{f^2} \\ & = \frac {a (c+d x)^4}{4 d}-\frac {2 i b (c+d x)^3 \arctan \left (e^{i (e+f x)}\right )}{f}+\frac {3 i b d (c+d x)^2 \operatorname {PolyLog}\left (2,-i e^{i (e+f x)}\right )}{f^2}-\frac {3 i b d (c+d x)^2 \operatorname {PolyLog}\left (2,i e^{i (e+f x)}\right )}{f^2}-\frac {6 b d^2 (c+d x) \operatorname {PolyLog}\left (3,-i e^{i (e+f x)}\right )}{f^3}+\frac {6 b d^2 (c+d x) \operatorname {PolyLog}\left (3,i e^{i (e+f x)}\right )}{f^3}+\frac {\left (6 b d^3\right ) \int \operatorname {PolyLog}\left (3,-i e^{i (e+f x)}\right ) \, dx}{f^3}-\frac {\left (6 b d^3\right ) \int \operatorname {PolyLog}\left (3,i e^{i (e+f x)}\right ) \, dx}{f^3} \\ & = \frac {a (c+d x)^4}{4 d}-\frac {2 i b (c+d x)^3 \arctan \left (e^{i (e+f x)}\right )}{f}+\frac {3 i b d (c+d x)^2 \operatorname {PolyLog}\left (2,-i e^{i (e+f x)}\right )}{f^2}-\frac {3 i b d (c+d x)^2 \operatorname {PolyLog}\left (2,i e^{i (e+f x)}\right )}{f^2}-\frac {6 b d^2 (c+d x) \operatorname {PolyLog}\left (3,-i e^{i (e+f x)}\right )}{f^3}+\frac {6 b d^2 (c+d x) \operatorname {PolyLog}\left (3,i e^{i (e+f x)}\right )}{f^3}-\frac {\left (6 i b d^3\right ) \text {Subst}\left (\int \frac {\operatorname {PolyLog}(3,-i x)}{x} \, dx,x,e^{i (e+f x)}\right )}{f^4}+\frac {\left (6 i b d^3\right ) \text {Subst}\left (\int \frac {\operatorname {PolyLog}(3,i x)}{x} \, dx,x,e^{i (e+f x)}\right )}{f^4} \\ & = \frac {a (c+d x)^4}{4 d}-\frac {2 i b (c+d x)^3 \arctan \left (e^{i (e+f x)}\right )}{f}+\frac {3 i b d (c+d x)^2 \operatorname {PolyLog}\left (2,-i e^{i (e+f x)}\right )}{f^2}-\frac {3 i b d (c+d x)^2 \operatorname {PolyLog}\left (2,i e^{i (e+f x)}\right )}{f^2}-\frac {6 b d^2 (c+d x) \operatorname {PolyLog}\left (3,-i e^{i (e+f x)}\right )}{f^3}+\frac {6 b d^2 (c+d x) \operatorname {PolyLog}\left (3,i e^{i (e+f x)}\right )}{f^3}-\frac {6 i b d^3 \operatorname {PolyLog}\left (4,-i e^{i (e+f x)}\right )}{f^4}+\frac {6 i b d^3 \operatorname {PolyLog}\left (4,i e^{i (e+f x)}\right )}{f^4} \\ \end{align*}
Time = 0.48 (sec) , antiderivative size = 365, normalized size of antiderivative = 1.61 \[ \int (c+d x)^3 (a+b \sec (e+f x)) \, dx=\frac {4 a c^3 f^4 x+6 a c^2 d f^4 x^2+4 a c d^2 f^4 x^3+a d^3 f^4 x^4-24 i b c^2 d f^3 x \arctan \left (e^{i (e+f x)}\right )-24 i b c d^2 f^3 x^2 \arctan \left (e^{i (e+f x)}\right )-8 i b d^3 f^3 x^3 \arctan \left (e^{i (e+f x)}\right )+4 b c^3 f^3 \text {arctanh}(\sin (e+f x))+12 i b d f^2 (c+d x)^2 \operatorname {PolyLog}\left (2,-i e^{i (e+f x)}\right )-12 i b d f^2 (c+d x)^2 \operatorname {PolyLog}\left (2,i e^{i (e+f x)}\right )-24 b c d^2 f \operatorname {PolyLog}\left (3,-i e^{i (e+f x)}\right )-24 b d^3 f x \operatorname {PolyLog}\left (3,-i e^{i (e+f x)}\right )+24 b c d^2 f \operatorname {PolyLog}\left (3,i e^{i (e+f x)}\right )+24 b d^3 f x \operatorname {PolyLog}\left (3,i e^{i (e+f x)}\right )-24 i b d^3 \operatorname {PolyLog}\left (4,-i e^{i (e+f x)}\right )+24 i b d^3 \operatorname {PolyLog}\left (4,i e^{i (e+f x)}\right )}{4 f^4} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 755 vs. \(2 (200 ) = 400\).
Time = 1.01 (sec) , antiderivative size = 756, normalized size of antiderivative = 3.33
method | result | size |
risch | \(-\frac {6 i b c \,d^{2} e^{2} \arctan \left ({\mathrm e}^{i \left (f x +e \right )}\right )}{f^{3}}+\frac {6 i b \,c^{2} d e \arctan \left ({\mathrm e}^{i \left (f x +e \right )}\right )}{f^{2}}-\frac {6 i b \,d^{2} c \operatorname {polylog}\left (2, i {\mathrm e}^{i \left (f x +e \right )}\right ) x}{f^{2}}+\frac {6 i b \,d^{2} c \operatorname {polylog}\left (2, -i {\mathrm e}^{i \left (f x +e \right )}\right ) x}{f^{2}}+\frac {3 b \,d^{2} c \ln \left (1-i {\mathrm e}^{i \left (f x +e \right )}\right ) x^{2}}{f}+\frac {3 b \,e^{2} c \,d^{2} \ln \left (1+i {\mathrm e}^{i \left (f x +e \right )}\right )}{f^{3}}-\frac {3 b \,d^{2} c \ln \left (1+i {\mathrm e}^{i \left (f x +e \right )}\right ) x^{2}}{f}-\frac {3 b \,e^{2} c \,d^{2} \ln \left (1-i {\mathrm e}^{i \left (f x +e \right )}\right )}{f^{3}}+\frac {3 b \,c^{2} d \ln \left (1-i {\mathrm e}^{i \left (f x +e \right )}\right ) x}{f}+\frac {3 b \,c^{2} d \ln \left (1-i {\mathrm e}^{i \left (f x +e \right )}\right ) e}{f^{2}}-\frac {3 b \,c^{2} d \ln \left (1+i {\mathrm e}^{i \left (f x +e \right )}\right ) x}{f}-\frac {3 b \,c^{2} d \ln \left (1+i {\mathrm e}^{i \left (f x +e \right )}\right ) e}{f^{2}}-\frac {3 i b \,d^{3} \operatorname {polylog}\left (2, i {\mathrm e}^{i \left (f x +e \right )}\right ) x^{2}}{f^{2}}+\frac {3 i b \,d^{3} \operatorname {polylog}\left (2, -i {\mathrm e}^{i \left (f x +e \right )}\right ) x^{2}}{f^{2}}-\frac {3 i b \,c^{2} d \operatorname {polylog}\left (2, i {\mathrm e}^{i \left (f x +e \right )}\right )}{f^{2}}+\frac {3 i b \,c^{2} d \operatorname {polylog}\left (2, -i {\mathrm e}^{i \left (f x +e \right )}\right )}{f^{2}}+\frac {2 i b \,d^{3} e^{3} \arctan \left ({\mathrm e}^{i \left (f x +e \right )}\right )}{f^{4}}+a \,d^{2} c \,x^{3}+\frac {3 a d \,c^{2} x^{2}}{2}+a \,c^{3} x +\frac {a \,d^{3} x^{4}}{4}+\frac {a \,c^{4}}{4 d}+\frac {6 i b \,d^{3} \operatorname {polylog}\left (4, i {\mathrm e}^{i \left (f x +e \right )}\right )}{f^{4}}+\frac {6 b \,d^{2} c \operatorname {polylog}\left (3, i {\mathrm e}^{i \left (f x +e \right )}\right )}{f^{3}}-\frac {b \,e^{3} d^{3} \ln \left (1+i {\mathrm e}^{i \left (f x +e \right )}\right )}{f^{4}}-\frac {6 b \,d^{3} \operatorname {polylog}\left (3, -i {\mathrm e}^{i \left (f x +e \right )}\right ) x}{f^{3}}+\frac {b \,d^{3} \ln \left (1-i {\mathrm e}^{i \left (f x +e \right )}\right ) x^{3}}{f}-\frac {b \,d^{3} \ln \left (1+i {\mathrm e}^{i \left (f x +e \right )}\right ) x^{3}}{f}-\frac {6 b \,d^{2} c \operatorname {polylog}\left (3, -i {\mathrm e}^{i \left (f x +e \right )}\right )}{f^{3}}+\frac {6 b \,d^{3} \operatorname {polylog}\left (3, i {\mathrm e}^{i \left (f x +e \right )}\right ) x}{f^{3}}+\frac {b \,e^{3} d^{3} \ln \left (1-i {\mathrm e}^{i \left (f x +e \right )}\right )}{f^{4}}-\frac {6 i b \,d^{3} \operatorname {polylog}\left (4, -i {\mathrm e}^{i \left (f x +e \right )}\right )}{f^{4}}-\frac {2 i b \,c^{3} \arctan \left ({\mathrm e}^{i \left (f x +e \right )}\right )}{f}\) | \(756\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 1085 vs. \(2 (187) = 374\).
Time = 0.34 (sec) , antiderivative size = 1085, normalized size of antiderivative = 4.78 \[ \int (c+d x)^3 (a+b \sec (e+f x)) \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int (c+d x)^3 (a+b \sec (e+f x)) \, dx=\int \left (a + b \sec {\left (e + f x \right )}\right ) \left (c + d x\right )^{3}\, dx \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 936 vs. \(2 (187) = 374\).
Time = 0.42 (sec) , antiderivative size = 936, normalized size of antiderivative = 4.12 \[ \int (c+d x)^3 (a+b \sec (e+f x)) \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int (c+d x)^3 (a+b \sec (e+f x)) \, dx=\int { {\left (d x + c\right )}^{3} {\left (b \sec \left (f x + e\right ) + a\right )} \,d x } \]
[In]
[Out]
Timed out. \[ \int (c+d x)^3 (a+b \sec (e+f x)) \, dx=\int \left (a+\frac {b}{\cos \left (e+f\,x\right )}\right )\,{\left (c+d\,x\right )}^3 \,d x \]
[In]
[Out]